package cn.edu.neusoft.wuguangsheng.flowerimpression.model;

import java.util.List;

import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.AllCollectionKnowBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.iface.GetAllKnowCollectionListIface;
import cn.edu.neusoft.wuguangsheng.flowerimpression.listener.ListListener;
import cn.edu.neusoft.wuguangsheng.flowerimpression.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class GetAllKnowCollectionListModel extends RetrofitBaseModel implements GetAllKnowCollectionListIface<AllCollectionKnowBean> {

    private AllService allService;
    private Retrofit retrofit;
    public GetAllKnowCollectionListModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }
    @Override
    public void getAllKnowCollectionList(String userid, ListListener<AllCollectionKnowBean> listListener) {

        Call<List<AllCollectionKnowBean>> call = allService.getAllKnowCollectionList(userid);
        callenqueueList(call,listListener);

    }
}
